    <?php if (!isset($_SESSION['user'])){ ?>
      <div style="padding:8px 5px">
        <a href="login.php?action=login" class="normal-font black" style="font-size:12pt">Login with Facebook</a>
		<br><!--<span class="black">Ladies Only</span>-->
      </div>
    <?php } else {?>


	<div>
		
	<div style="width:45px;float:right;padding:8px 5px">
    <img src="https://graph.facebook.com/<?php echo $user; ?>/picture" style="width:40px">
	</div>
	<div style="padding:10px 5px;text-align:right;float:right;width:170px" class="black">
	<span class="normal-font"><?php echo $name; ?></span><br>
	<span id="loggedin_userid" style="display:none"><?php echo $user; ?></span>
	<span id="loggedin_username" style="display:none"><?php echo $_SESSION['name']; ?></span>
	<a href="index.php?cat=feedback" class="black" style="font-size:8pt">About</a> | 
	<a href="index.php?cat=settings" class="black" style="font-size:8pt">Settings</a> | 
	<a href="login.php?action=logout" class="black" style="font-size:8pt">Logout</a>
	</div>
	
	<div style="padding-right:5px;float:right;width:450px">
	<div style="width:300px;float:right;">
			
	<!-- for home -->
	<a href="index.php" class="black large-font">
	<div style="width:60px;float:right;" name="Home" class="header-menu <?php if(!isset($_GET['cat'])) echo "header-menu-active";?>">
		<div style="text-align:center;padding:10px 5px;">
		<img src="images/icons/home_40.png" alt="home"  style="padding:0px 5px;width:35px"/></div>
		</div></a>
	
	
	</div>
	<div style="width:140px;float: right;padding:10px 5px">	<?php //include("php/modules/search_form.php"); ?></div>
	<div class="clear"></div>
	</div>
	
	
	<div class="clear"></div>
	</div>
	
<?php } ?>